package com.itheima.webaitliasserver.common;

import com.itheima.webaitliasserver.utils.AliyunOssOperator;
import com.itheima.webaitliasserver.utils.AliyunOssProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName: xiaoZhang
 * @Description:
 * @Author: Zhang
 * @CreateDate: 2025-09-27 19:54
 */
@Configuration
public class commonConfig {
    // bean 自动装配 AliyunOssProperties
    @Bean
    public AliyunOssOperator aliyunOssOperator(AliyunOssProperties aliyunOssProperties) {
        return new AliyunOssOperator(aliyunOssProperties);
    }
}
